<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,minimal-ui">
    <meta content="telephone=no" name="format-detection" />
    <meta content="email=no" name="format-detection" />
    <meta name="wap-font-scale" content="no">  <!--解决UC字体忽然变大-->
    <meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1">
    
        <?php if(!empty($page["title"])): ?><title><?php echo ($page["title"]); ?></title>
            <?php else: ?>
            <title><?php echo ($setting["sitename"]); ?></title><?php endif; ?>
    
    <?php if(!empty($page["keywords"])): ?><meta name="keywords" content="<?php echo ($page["keywords"]); ?>"/>
        <?php else: ?>
        <meta name="keywords" content="<?php echo ($setting["keywords"]); ?>"/><?php endif; ?>
    <?php if(!empty($page["description"])): ?><meta property="description" name="description" content="<?php echo ($page["description"]); ?>"/>
        <?php else: ?>
        <meta property="description" name="description" content="<?php echo ($setting["description"]); ?>"/><?php endif; ?>

    
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--bootstrap组件--><link rel="stylesheet" href="/Public/bootstrap/bootstrap.min.css" ><script src="/Public/bootstrap/jquery.min.js" ></script><script src="/Public/bootstrap/popper.min.js"></script><script src="/Public/bootstrap/bootstrap.min.js"></script><!--awesome字体--><link href="/Public/bootstrap/font/css/font-awesome.min.css" rel="stylesheet"><!--bootstrap-dialog--><script src="/Public/bootstrap/bootstrap.dialog.js"></script><!--拖拽--><!--<script type="text/javascript" src="/Public/Plugs/jq/jquery-ui.min.js"></script>--><!--文件上传--><!--<link rel="stylesheet" type="text/css" href="/Public/Plugs/uploadify/uploadify.css"><script type="text/javascript" src="/Public/Plugs/uploadify/jquery.uploadify.min.js"></script>--><!--滚动条--><!--<link rel="stylesheet" type="text/css" href="/Public/Plugs/mCustomScrollbar/jquery.mCustomScrollbar.css"/><script type="text/javascript" src="/Public/Plugs/mCustomScrollbar/jquery.mCustomScrollbar.js"></script>--><!--颜色选择器--><link rel="stylesheet" type="text/css" href="/Public/Plugs/spectrum/spectrum.css"><script type="text/javascript" src="/Public/Plugs/spectrum/spectrum.js"></script><!--弹出框--><script type="text/javascript" src="/Public/Plugs/jq/jquery-dialog.js"></script><!--新日历控件,来源  http://blog.csdn.net/binyao02123202/article/details/42066035--><!--<link rel="stylesheet" type="text/css" href="/Public/Plugs/calendar/cxcalendar.css"/><script type="text/javascript" src="/Public/Plugs/calendar/calendar.js"></script>--><!--日期选择器插件datetimepicker--><link rel="stylesheet" href="/Public/Plugs/flatpickr/flatpickr.min.css"><script type="text/javascript" src="/Public/Plugs/flatpickr/flatpickr.js"></script><script type="text/javascript" src="/Public/Plugs/flatpickr/zh.js?v=3"></script><!--文件上传-插件地址：https://github.com/danielm/uploader--><script src="/Public/Plugs/dmuploader/jquery.dm-uploader.js"></script><!--ueditor--><script type="text/javascript" src="/Public/Plugs/ueditor/ueditor.config.js"></script><script type="text/javascript" src="/Public/Plugs/ueditor/ueditor.all.js"></script><link rel="stylesheet" type="text/css" href="/Public/Plugs/ueditor/third-party/video-js/video-js.css"><script type="text/javascript" src="/Public/Plugs/ueditor/third-party/video-js/video.js"></script><!--app--><link rel="stylesheet" type="text/css" href="/Public/Admin/css/style.css"/><script type="text/javascript" src="/Public/Admin/js/common_admin.js"></script>
    
</head>
<body>

<div class="g-page-in">
        <div class="clearfix">        <div class="float-left">            <div class="u-breadcrumb">                <a class="back" href="javascript:window.location.reload()" ><span class="fa fa-repeat"></span> 刷新</a>                <span class="name">管理员列表</span>            </div>        </div>        <div class="float-right">            <a href="<?php echo U('Manager/add');?>" role="button" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> 新增管理员</a>        </div>    </div>    <div class="h10"></div>    <table class="table table-bb">        <tr>			<th width="40">ID</th>			<th>用户名</th>			<th>昵称</th>			<!--<th>所属权限组</th>-->			<th>上次登录时间</th>			<th>登录次数</th>			<th>操作</th>		</tr>       	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="tr_<?php echo ($vo["id"]); ?>">				<td><?php echo ($vo["id"]); ?></td>                <td><?php if(($vo["id"]) == "1"): ?><i class="fa fa-user-circle-o text-success" aria-hidden="true"></i>&nbsp;<?php endif; echo ($vo["user"]); ?></td>				<td><?php echo ($vo["nickname"]); ?></td>				<!--<td>					<?php echo ($vo["groups"]); ?>				</td>-->				<td>					<?php if(!empty($vo["lastlogintime"])): echo (date("Y-m-d h:i:s",$vo["lastlogintime"])); ?>					<?php else: ?>						无<?php endif; ?>				</td>				<td><?php echo ($vo["logintimes"]); ?></td>				<td>                    <a class="btn btn-sm btn-outline-secondary" href="<?php echo U('Manager/edit',array('id'=>$vo['id']));?>" role="button"><i class="fa fa-edit"></i> 编辑</a>                    <div class="btn-group" role="group">                        <button class="btn btn-sm btn-outline-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">                            更多                        </button>                        <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">                            <a class="dropdown-item" href="<?php echo U('Manager/repass');?>?id=<?php echo ($vo["id"]); ?>"><i class="fa fa-key"></i> 修改密码</a>                            <?php if(($vo["id"]) != "1"): ?><a class="dropdown-item" href="#" onclick="return namager_delete('<?php echo ($vo["id"]); ?>')"><i class="fa fa-trash"></i> 删除</a><?php endif; ?>                        </div>                    </div>				</td>			</tr><?php endforeach; endif; else: echo "" ;endif; ?>    </table><script>	//ajax删除管理员	function namager_delete($id){		$boot.confirm({text:'确认删除？',title:'删除管理员'},function(){			$.ajax({				type:"post",			    url: "<?php echo U('Manager/ajax_del_manager');?>",			    data: {id:$id},			    success: function(data){				   if(data['status'])				   {				   		$boot.success({text:data.msg});				   		$(".tr_"+$id).remove();				   }else				   {				   		$boot.error({text:data.msg});				   }			   }			});		});		return false;	}</script><style></style>
</div>

<script type="text/javascript" src="/Public/Admin/js/my.js"></script>
</body>
</html>